
import hello

#for exposing class
w = hello.World("hi man")
print w.greet()

w.set("hi body")
print w.greet()



v = hello.Var("chenglun")
print v.name, v.value
v.value = 10
print v.name, v.value


n = hello.Num()
print n.rovalue

n.value = 21
print n.value

base = hello.Base("base-object")
print base.name

derived = hello.Derived()
print derived.name

hello.b(base) #print out something from cpp
hello.d(derived) #print out something from cpp

base = hello.factory()
print base.name
hello.b(base) # print out something from cpp
print base.name




